<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="scripts/prototype-1.6.0.3.js"></script>
<script type="text/javascript">
function getXHR(){
    // Authorization Header per RFC 2617
    //
    var optHeader1 = {
      "Authorization" : "Basic UkVFRDA6RDR0NEBtNG5u",
      "Content-Type" : "application/x-www-form-urlencoded"
    };     
    var url = "https://services.geolearning.com/dataextraction/primerica/courses";
    // request course data from LMS
    //
    new Ajax.Request(url, {
        method: 'post',
        requestHeaders: optHeader1,
        onFailure: function(){ alert('Something went wrong...') },
        onSuccess: function(response) {
            alert("status:" + response.status);
            // Note how we brace against null values
            //
            var locus = response.getHeader("Location") || '';
            alert("Location:" + locus);
        }
    });
}
</script>
</head>
<body onload="getXHR()">
<h1>Test Web Services</h1>
</body>
</html>